package vip.xiaonuo.core.indexMenu.mapper;

import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;
import vip.xiaonuo.core.indexMenu.entity.MenuIndex;
import vip.xiaonuo.core.indexMenu.entity.MenuIndexAdd;
import vip.xiaonuo.core.indexMenu.entity.MenuIndexShowDto;

import java.util.List;

@Mapper
@Repository
public interface CompanyIndexMapper {
    List<MenuIndex> menuIndexGet(@Param("name") String name);

    void menuIndexAdd(MenuIndexAdd menuIndexAdd);

    void menuIndexUpdate(MenuIndexAdd menuIndexAdd);

    void menuIndexDel(@Param("id")Integer id);

    List<MenuIndexShowDto> getMenuIndexShowDto();

}
